package ooday05;

public class EnumDemo {
    public static void main(String[] args) {
        Season[] s = Season.values();
        for (int i = 0;i<s.length;i++){
            System.out.println(s[i].getSeasonName()+","+s[i].getSeasonDesc());
        }

        Season ss = Season.WINTER;
        switch (ss){
            case SPRING:
                System.out.println(ss.getSeasonName()+ss.getSeasonDesc());
                break;
            case SUMMER:
                System.out.println(ss.getSeasonName()+ss.getSeasonDesc());
                break;
            case AUTUMN:
                System.out.println(ss.getSeasonName()+ss.getSeasonDesc());
                break;
            case WINTER:
                System.out.println(ss.getSeasonName()+ss.getSeasonDesc());
                break;
        }


    }
}
